<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="displayvideo_v2.html">Display & Video 360 API</a> . <a href="displayvideo_v2.advertisers.html">advertisers</a> . <a href="displayvideo_v2.advertisers.invoices.html">invoices</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#list">list(advertiserId, issueMonth=None, loiSapinInvoiceType=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists invoices posted for an advertiser in a given month. Invoices generated by billing profiles with a "Partner" invoice level are not retrievable through this method.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#lookupInvoiceCurrency">lookupInvoiceCurrency(advertiserId, invoiceMonth=None, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieves the invoice currency used by an advertiser in a given month.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="list">list(advertiserId, issueMonth=None, loiSapinInvoiceType=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists invoices posted for an advertiser in a given month. Invoices generated by billing profiles with a &quot;Partner&quot; invoice level are not retrievable through this method.

Args:
  advertiserId: string, Required. The ID of the advertiser to list invoices for. (required)
  issueMonth: string, The month to list the invoices for. If not set, the request will retrieve invoices for the previous month. Must be in the format YYYYMM.
  loiSapinInvoiceType: string, Select type of invoice to retrieve for Loi Sapin advertisers. Only applicable to Loi Sapin advertisers. Will be ignored otherwise.
    Allowed values
      LOI_SAPIN_INVOICE_TYPE_UNSPECIFIED - Value is not specified.
      LOI_SAPIN_INVOICE_TYPE_MEDIA - Invoices with Media cost.
      LOI_SAPIN_INVOICE_TYPE_PLATFORM - Invoices with Platform fee.
  pageSize: integer, Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.
  pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListInvoices` method. If not specified, the first page of results will be returned.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  &quot;invoices&quot;: [ # The list of invoices. This list will be absent if empty.
    { # A single invoice.
      &quot;budgetInvoiceGroupingId&quot;: &quot;A String&quot;, # The budget grouping ID for this invoice. This field will only be set if the invoice level of the corresponding billing profile was set to &quot;Budget invoice grouping ID&quot;.
      &quot;budgetSummaries&quot;: [ # The list of summarized information for each budget associated with this invoice. This field will only be set if the invoice detail level of the corresponding billing profile was set to &quot;Budget level PO&quot;.
        { # Summarized information of an individual campaign budget.
          &quot;externalBudgetId&quot;: &quot;A String&quot;, # Corresponds to the external_budget_id of a campaign budget. If the value is not set in the campaign budget, this field will be empty.
          &quot;preTaxAmountMicros&quot;: &quot;A String&quot;, # The sum of charges made under this budget before taxes, in micros of the invoice&#x27;s currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar.
          &quot;prismaCpeCode&quot;: { # Google Payments Center supports searching and filtering on the component fields of this code. # Relevant client, product, and estimate codes from the Mediaocean Prisma tool. Only applicable for campaign budgets with an external_budget_source of EXTERNAL_BUDGET_SOURCE_MEDIA_OCEAN.
            &quot;prismaClientCode&quot;: &quot;A String&quot;, # The Prisma client code.
            &quot;prismaEstimateCode&quot;: &quot;A String&quot;, # The Prisma estimate code.
            &quot;prismaProductCode&quot;: &quot;A String&quot;, # The Prisma product code.
          },
          &quot;taxAmountMicros&quot;: &quot;A String&quot;, # The amount of tax applied to charges under this budget, in micros of the invoice&#x27;s currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar.
          &quot;totalAmountMicros&quot;: &quot;A String&quot;, # The total sum of charges made under this budget, including tax, in micros of the invoice&#x27;s currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar.
        },
      ],
      &quot;correctedInvoiceId&quot;: &quot;A String&quot;, # The ID of the original invoice being adjusted by this invoice, if applicable. May appear on the invoice PDF as `Reference invoice number`. If replaced_invoice_ids is set, this field will be empty.
      &quot;currencyCode&quot;: &quot;A String&quot;, # The currency used in the invoice in ISO 4217 format.
      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the invoice.
      &quot;dueDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the invoice is due.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;invoiceId&quot;: &quot;A String&quot;, # The unique ID of the invoice.
      &quot;invoiceType&quot;: &quot;A String&quot;, # The type of invoice document.
      &quot;issueDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the invoice was issued.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;name&quot;: &quot;A String&quot;, # The resource name of the invoice.
      &quot;nonBudgetMicros&quot;: &quot;A String&quot;, # The total amount of costs or adjustments not tied to a particular budget, in micros of the invoice&#x27;s currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar.
      &quot;paymentsAccountId&quot;: &quot;A String&quot;, # The ID of the payments account the invoice belongs to. Appears on the invoice PDF as `Billing Account Number`.
      &quot;paymentsProfileId&quot;: &quot;A String&quot;, # The ID of the payments profile the invoice belongs to. Appears on the invoice PDF as `Billing ID`.
      &quot;pdfUrl&quot;: &quot;A String&quot;, # The URL to download a PDF copy of the invoice. This URL is user specific and requires a valid OAuth 2.0 access token to access. The access token must be provided in an `Authorization: Bearer` HTTP header and be authorized for one of the following scopes: * `https://www.googleapis.com/auth/display-video-mediaplanning` * `https://www.googleapis.com/auth/display-video` The URL will be valid for 7 days after retrieval of this invoice object or until this invoice is retrieved again.
      &quot;purchaseOrderNumber&quot;: &quot;A String&quot;, # Purchase order number associated with the invoice.
      &quot;replacedInvoiceIds&quot;: [ # The ID(s) of any originally issued invoice that is being cancelled by this invoice, if applicable. Multiple invoices may be listed if those invoices are being consolidated into a single invoice. May appear on invoice PDF as `Replaced invoice numbers`. If corrected_invoice_id is set, this field will be empty.
        &quot;A String&quot;,
      ],
      &quot;serviceDateRange&quot;: { # A date range. # The service start and end dates which are covered by this invoice.
        &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
          &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
          &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
          &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        },
        &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
          &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
          &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
          &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        },
      },
      &quot;subtotalAmountMicros&quot;: &quot;A String&quot;, # The pre-tax subtotal amount, in micros of the invoice&#x27;s currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar.
      &quot;totalAmountMicros&quot;: &quot;A String&quot;, # The invoice total amount, in micros of the invoice&#x27;s currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar.
      &quot;totalTaxAmountMicros&quot;: &quot;A String&quot;, # The sum of all taxes in invoice, in micros of the invoice&#x27;s currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListInvoices` method to retrieve the next page of results. This token will be absent if there are no more invoices to return.
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="lookupInvoiceCurrency">lookupInvoiceCurrency(advertiserId, invoiceMonth=None, x__xgafv=None)</code>
  <pre>Retrieves the invoice currency used by an advertiser in a given month.

Args:
  advertiserId: string, Required. The ID of the advertiser to lookup currency for. (required)
  invoiceMonth: string, Month for which the currency is needed. If not set, the request will return existing currency settings for the advertiser. Must be in the format YYYYMM.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  &quot;currencyCode&quot;: &quot;A String&quot;, # Currency used by the advertiser in ISO 4217 format.
}</pre>
</div>

</body></html>